-- GENERATED SPELL FOR [Drakegore] --


function spell0_27009(pUnit, Event) --@Burning Fists,Self--
pUnit:FullCastSpellOnTarget(52101,pUnit)
pUnit:RegisterEvent('Sorts_27009', 597, 1)
end

function spell1_27009(pUnit, Event) --@Magnataur Charge,n/a--
pUnit:FullCastSpellOnTarget(52088,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27009', 572, 1)
end

function Sorts_27009(pUnit, Event)
local choix_sorts_27009 = math.random(0, 1)
if choix_sorts_27009 == 0 then
pUnit:RegisterEvent('spell0_27009', 1, 1)
end
if choix_sorts_27009 == 1 then
pUnit:RegisterEvent('spell1_27009', 1, 1)
end
end

function mob27009_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27009', math.random(1500, 3000), 1)
end

function mob27009_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27009_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27009_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27009, 1, 'mob27009_Action')
RegisterUnitEvent(27009, 2, 'mob27009_Leave')
RegisterUnitEvent(27009, 3, 'mob27009_Kill')
RegisterUnitEvent(27009, 4, 'mob27009_Die')
